package com.smart.campus.controller;

import com.smart.campus.dto.Ethnicity;
import com.smart.campus.interfaces.EthnicityServiceApi;
import com.smart.campus.service.EthnicityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class EnthnicityController implements EthnicityServiceApi {
    @Autowired
    private EthnicityService ethnicityService;

    @Override
    public List<Ethnicity> findEthnicityList() {
        return ethnicityService.findEthnicityList();
    }
}
